@extends('home/layout')
@section('content')
<link href="/home/css/personal.css" rel="stylesheet" type="text/css"/>
<div style="background-color: #1C546B; margin-top:none;">
	<div class="container" style="width:900px;"> <!--MC导航-->
		<h2 id="c-title">个人设置 ·<small> 基本资料</small></h2>
		<div>
			<div id="c-body">
				<div class="row" style="height:650px;">
					<div class="col-md-2" id="c-dhl">
						<ul class="list-unstyled">
							<li class="text-center"><a href="{{ url('/home/user/personal') }}">&nbsp;基本资料<a></li>
							<hr>
							<li class="text-right">
								<a href="{{ url('/home/user/photo') }}"><strong>修改头像</strong></a>
								&nbsp;&nbsp;<span class="fa fa-hand-o-right"></span>
							</li>
							<hr>
							<li class="text-center"><a href="{{ url('/home/user/upwd') }}">修改密码</a></li>
						</ul>
					</div>
					<div class="col-md-10" id="c-form">
						<div class="row">
							<div class="col-md-4">
								<img src="{{ $data -> photo }}" width="200px" height="200px" class="img-rounded">
								<p style="width:100%;" class="text-center"><strong>当前头像</strong></p>
							</div>
							<div class="col-md-8">
								<strong>本地上传</strong>
								<hr/>
								<p>请选择新的图片上传，文件大小不能超过1M</p>
								<p>支持.jpg/.jpeg/.gif/.png格式的照片</p>
								<form action="{{ url('/home/user/dophoto') }}" method="post" enctype="multipart/form-data">
								{{ csrf_field() }}
									<div style="margin-top: 30px;">
										<input type="file" name="photo">
										<input type="hidden" name="id" value="{{ $data -> id }}">
									</div>
									<div style="margin: 30px 0;">
										<button type="submit" class="btn btn-primary btn-lg btn-block">上传</button>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
	
	var info = "{{ session('info') }}";
	if(info != '')
	{
		alert(info);
	}
	
</script>
@endsection